package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import cn.wolfcode.luowowo.search.domain.UserInfoTemplate;
import cn.wolfcode.luowowo.search.vo.StatisVO;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 攻略spring-data-jpa接口
 */
@Repository
public interface IStrategySearchRepository extends ElasticsearchRepository<StrategyTemplate, Long>{


    /**
     * jpa操作格式:  find  + by + 实体的属性
     * @param themeId
     * @return
     */
    List<StrategyTemplate> findByThemeId(Long themeId);
    /**
     * 通过目的地名称查询
     * @param destName
     * @return
     */
    List<StrategyTemplate> findByDestName(String destName);
}
